#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <QDebug>
#include <QLabel>
class MyCoin;
class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    explicit PlayScene(QWidget *parent = nullptr);
    ~PlayScene(){qDebug()<<__FUNCTION__;}
    void setLevel(int lv){level = lv;}
    void initScene();
    void initCoinBtn();
    void initWinImg();
    bool win();
    void calcOtherBtn(int,int);
    void doWinAction();
    void paintEvent(QPaintEvent* ev);
public:
    int level = 0;
    int gameArray[4][4]; //二维数组数据
    std::vector<MyCoin * > vec_btn;
    QLabel * label;//胜利图片

signals:

};

#endif // PLAYSCENE_H
